/**
 * utilfun.h
 *
 * utilities function definition.
 *
 * Copyright (c) sti-seedclass 2011, tankery.chen@gmail.com
 */
#ifndef __UTILFUN_H_
#define __UTILFUN_H_

typedef void (* callback_void)(void*);

void utilInit(void);
void utilSleepMs(uint32_t mstime);
void utilDelayMs(uint32_t mstime);
void utilSleepUs(uint32_t ustime);
void utilDelayUs(uint32_t ustime);

void setTimer(uint32_t mstime, callback_void func);

#endif // __UTILFUN_H_
